<?php
/**
 * 公司管理中心
 * 制作: jiuge
 * 时间: 2019-12-15
 * 路由：cc =》CenterCompany
 */

Route::group(['prefix' => 'center',
        'namespace' => 'CenterCompany',
    //    'middleware' => ['web.check_token']
    ], function(){
    //公司信息
    Route::group(['prefix'=>'com'],function(){
        Route::post('legal', 'CompanyController@getLegalInfo');  //获取法人信息
        Route::post('legal-set', 'CompanyController@setLegalInfo');  //设置法人信息
        Route::post('equip', 'CompanyController@getEquip');  //获取工厂设备
        Route::post('equip-set', 'CompanyController@setEquip');  //设置工厂设备
    });
    //订单信息
    Route::group(['prefix'=>'order'],function(){
        Route::post('fabric', 'OrderController@getFabric');  //获取原料面料
        Route::post('fabric-set', 'OrderController@setFabric');  //设置原来面料
        Route::post('contract-get', 'OrderController@getContract');  //获取订单合同
        Route::post('contract-set', 'OrderController@setContract');  //设置订单合同
        Route::post('draft-set', 'OrderController@setDraft');  //订单草稿
        Route::post('publish-set', 'OrderController@setPublish');  //订单发布
        Route::post('bail-set', 'OrderController@setBail');  //订单保证金
        Route::post('apply-set', 'OrderController@setApply');  //订单抢单
        Route::post('applylist-get', 'OrderController@getApplyList');  //订单抢单
        Route::post('talk', 'OrderController@getTask');  //订单交流
        Route::post('cooperate-get', 'OrderController@getCooperate');  //订单合作列表
        Route::post('cooperate-set', 'OrderController@setCooperate');  //订单合作设置
        Route::post('charge-set', 'OrderController@getCharge');  //订单预付款
        Route::post('fabric-send', 'OrderController@setFabricSend');  //原料发送
        Route::post('fabric-accept', 'OrderController@setFabricAccept');  //原料接收
        Route::post('produce-set', 'OrderController@setProduce');  //订单生产
        Route::post('qc-set', 'OrderController@setQc');  //订单跟单
        Route::post('qc-sure-set', 'OrderController@setQcSure');  //订单跟单确认
        Route::post('delivery', 'OrderController@setDelivery');  //订单打包发货
        Route::post('sign', 'OrderController@setSign');  //订单签收
        Route::post('comment', 'OrderController@setComment');  //订单评价
    });
    //招聘信息
    Route::group(['prefix'=>'job'],function(){
        Route::post('index', 'JobController@getIndex');  //获取岗位列表
        Route::post('one', 'JobController@getOne');  //获取岗位详情
        Route::post('applylist', 'JobController@getApplyList');  //获取申请列表
        Route::post('talk', 'JobController@getTalk');  //招聘交流
        Route::post('invite', 'JobController@setInvite');  //面试邀请
        Route::post('offer', 'JobController@setOffer');  //入职邀请
        Route::post('offer-sure', 'JobController@setOfferSure');  //入职确认
        Route::post('comment', 'JobController@setComment');  //招聘评价
    });
});